# -*- coding: utf-8 -*-
# @Time : 2021/9/26 14:15
# @Author : 伟哥
# @Email : xw@gmail.com
# @File : run.py
# @Project : api
'''执行器，生成报告'''
import time

import unittest
from BeautifulReport import BeautifulReport

from setting.member_path import *

discover=unittest.defaultTestLoader.discover(CASE_PATH,"test_*.py")
now=time.strftime("%Y-%m-%d %H-%M-%S")
filename="result-{}.html".format(now)
run=BeautifulReport(discover)
run.report(description="自动化测试",report_dir=REPORT_PATH,filename=filename)
